﻿using UnityEngine;
using System.Collections;

public class MoveOffset : MonoBehaviour {
	private Material currentmaterial;
	public float velocidade;
	private float offset;
	// Use this for initialization
	void Start () {
		currentmaterial = renderer.material;
	}
	
	// Update is called once per frame
	void Update () {
		offset += 0.001f;
		currentmaterial.SetTextureOffset("_MainText", new Vector2(offset*velocidade,0));
	}
}
